<?php
declare(strict_types=1);

namespace Core\Exception;

use Exception;

class PrintException extends Exception
{
    private mixed $data = null;

    public function __construct(mixed $data)
    {
        $this->data = print_r($data, true);
        parent::__construct('打印输出', 0);
    }

    public function getData()
    {
        return $this->data;
    }
}